<div class="view-header">
    <div class="view-header-left">        
        <!-- <div class="view-header-item color-open" title="[[TITLE_HEADER_ADD]]"
             ng-click="add_open = !add_open">
            <i class="fa fa-plus"></i>
        </div> -->

        <div class="view-header-item color-close above-cover"
             title="[[TITLE_HEADER_ADD_CLOSE]]" ng-click="add_open = !add_open"
             ng-show="add_open">
            <i class="fa fa-close"></i>
        </div>

        <div class="view-header-item color-check above-cover"
             title="确认添加"
             ng-click='form_add.$valid?submit_add():{};'
             title="添加提交{{form_add.$invalid?'请完成表单后再提交!':''}}"
             ng-show="add_open">
            <i class="fa fa-check" ng-show="form_add.$valid"></i>
            <i class="fa fa-ban" ng-show="form_add.$invalid"></i>
        </div>

        <!-- edit-->
        <div class="view-header-item color-close above-cover"
             title="[[TITLE_HEADER_EDIT_CLOSE]]"
             ng-click="edit_open = !edit_open" ng-show="edit_open">
            <i class="fa fa-close"></i>
        </div>

        <div class="view-header-item color-check above-cover"
             title="确认修改"
             ng-click='form_edit.$valid?submit_edit():{};'
             title="修改提交{{form_add.$invalid?'请完成表单后再提交!':''}}"
             ng-show="edit_open">

            <i class="fa fa-check" ng-show="form_edit.$valid"></i>
            <i class="fa fa-ban" ng-show="form_edit.$invalid"></i>
        </div>

    </div>

</div>
<div class="view-content ">
    <div ag-grid="grid" class="ag-fresh ag-custom-center" style="height :100%"></div>
</div>

<div class="data-overlay" ng-show="add_open">
    <div class="overlay-container">
        <div class="overlay-header">summary_add</div>
        <div ng-form name="form_add" novalidate="novalidate">
            <div class="new-block" >
	<div class="new-item">
		<span>start_sale_time</span>
		<input ng-model="record_add.start_sale_time" />
	</div>
	<div class="new-item">
		<span>vid</span>
		<input ng-model="record_add.vid" />
	</div>
	<div class="new-item">
		<span>engine_no</span>
		<input ng-model="record_add.engine_no" />
	</div>
	<div class="new-item">
		<span>compulsory_insurance_flag</span>
		<input ng-model="record_add.compulsory_insurance_flag" />
	</div>
	<div class="new-item">
		<span>model</span>
		<input ng-model="record_add.model" />
	</div>
	<div class="new-item">
		<span>purchase_unit</span>
		<input ng-model="record_add.purchase_unit" />
	</div>
	<div class="new-item">
		<span>id</span>
		<input ng-model="record_add.id" />
	</div>
	<div class="new-item">
		<span>prepare_sale_price</span>
		<input ng-model="record_add.prepare_sale_price" />
	</div>
	<div class="new-item">
		<span>brand</span>
		<input ng-model="record_add.brand" />
	</div>
	<div class="new-item">
		<span>sale_customer_source</span>
		<input ng-model="record_add.sale_customer_source" />
	</div>
	<div class="new-item">
		<span>purchase_type</span>
		<input ng-model="record_add.purchase_type" />
	</div>
	<div class="new-item">
		<span>validate_cost</span>
		<input ng-model="record_add.validate_cost" />
	</div>
	<div class="new-item">
		<span>interior_color</span>
		<input ng-model="record_add.interior_color" />
	</div>
	<div class="new-item">
		<span>referral_position</span>
		<input ng-model="record_add.referral_position" />
	</div>
	<div class="new-item">
		<span>inventory_id</span>
		<input ng-model="record_add.inventory_id" />
	</div>
	<div class="new-item">
		<span>shangyexian</span>
		<input ng-model="record_add.shangyexian" />
	</div>
	<div class="new-item">
		<span>sale_transfer_fee</span>
		<input ng-model="record_add.sale_transfer_fee" />
	</div>
	<div class="new-item">
		<span>stock_sn</span>
		<input ng-model="record_add.stock_sn" />
	</div>
	<div class="new-item">
		<span>version</span>
		<input ng-model="record_add.version" />
	</div>
	<div class="new-item">
		<span>phone</span>
		<input ng-model="record_add.phone" />
	</div>
	<div class="new-item">
		<span>purchase_price</span>
		<input ng-model="record_add.purchase_price" />
	</div>
	<div class="new-item">
		<span>salesman</span>
		<input ng-model="record_add.salesman" />
	</div>
	<div class="new-item">
		<span>replacement_vehicle</span>
		<input ng-model="record_add.replacement_vehicle" />
	</div>
	<div class="new-item">
		<span>purchase_date</span>
		<input ng-model="record_add.purchase_date" />
	</div>
	<div class="new-item">
		<span>extra_fee</span>
		<input ng-model="record_add.extra_fee" />
	</div>
	<div class="new-item">
		<span>warehouse_sn</span>
		<input ng-model="record_add.warehouse_sn" />
	</div>
	<div class="new-item">
		<span>customer_type</span>
		<input ng-model="record_add.customer_type" />
	</div>
	<div class="new-item">
		<span>sale_phone</span>
		<input ng-model="record_add.sale_phone" />
	</div>
	<div class="new-item">
		<span>color</span>
		<input ng-model="record_add.color" />
	</div>
	<div class="new-item">
		<span>sale_referral_position</span>
		<input ng-model="record_add.sale_referral_position" />
	</div>
	<div class="new-item">
		<span>sale_type</span>
		<input ng-model="record_add.sale_type" />
	</div>
	<div class="new-item">
		<span>remark</span>
		<input ng-model="record_add.remark" />
	</div>
	<div class="new-item">
		<span>expect_store_risk</span>
		<input ng-model="record_add.expect_store_risk" />
	</div>
	<div class="new-item">
		<span>miles</span>
		<input ng-model="record_add.miles" />
	</div>
	<div class="new-item">
		<span>sale_customer_name</span>
		<input ng-model="record_add.sale_customer_name" />
	</div>
	<div class="new-item">
		<span>reconditioning_cost</span>
		<input ng-model="record_add.reconditioning_cost" />
	</div>
	<div class="new-item">
		<span>sale_date</span>
		<input ng-model="record_add.sale_date" />
	</div>
	<div class="new-item">
		<span>vehicle_status</span>
		<input ng-model="record_add.vehicle_status" />
	</div>
	<div class="new-item">
		<span>customer_source</span>
		<input ng-model="record_add.customer_source" />
	</div>
	<div class="new-item">
		<span>pay_type</span>
		<input ng-model="record_add.pay_type" />
	</div>
	<div class="new-item">
		<span>sn</span>
		<input ng-model="record_add.sn" />
	</div>
	<div class="new-item">
		<span>appraiser</span>
		<input ng-model="record_add.appraiser" />
	</div>
	<div class="new-item">
		<span>compulsory_insurance_expire_date</span>
		<input ng-model="record_add.compulsory_insurance_expire_date" />
	</div>
	<div class="new-item">
		<span>vehicle_id</span>
		<input ng-model="record_add.vehicle_id" />
	</div>
	<div class="new-item">
		<span>loan_id</span>
		<input ng-model="record_add.loan_id" />
	</div>
	<div class="new-item">
		<span>insurance_id</span>
		<input ng-model="record_add.insurance_id" />
	</div>
	<div class="new-item">
		<span>sale_referral</span>
		<input ng-model="record_add.sale_referral" />
	</div>
	<div class="new-item">
		<span>quantity</span>
		<input ng-model="record_add.quantity" />
	</div>
	<div class="new-item">
		<span>address</span>
		<input ng-model="record_add.address" />
	</div>
	<div class="new-item">
		<span>stock_time</span>
		<input ng-model="record_add.stock_time" />
	</div>
	<div class="new-item">
		<span>base_id</span>
		<input ng-model="record_add.base_id" />
	</div>
	<div class="new-item">
		<span>register_date</span>
		<input ng-model="record_add.register_date" />
	</div>
	<div class="new-item">
		<span>license_plate</span>
		<input ng-model="record_add.license_plate" />
	</div>
	<div class="new-item">
		<span>referral</span>
		<input ng-model="record_add.referral" />
	</div>
	<div class="new-item">
		<span>transfer_fee</span>
		<input ng-model="record_add.transfer_fee" />
	</div>
	<div class="new-item">
		<span>upkeep_cost</span>
		<input ng-model="record_add.upkeep_cost" />
	</div>
	<div class="new-item">
		<span>insurance_flag</span>
		<input ng-model="record_add.insurance_flag" />
	</div>
	<div class="new-item">
		<span>customer_name</span>
		<input ng-model="record_add.customer_name" />
	</div>
	<div class="new-item">
		<span>pre_sale_price</span>
		<input ng-model="record_add.pre_sale_price" />
	</div>
	<div class="new-item">
		<span>warehouse_id</span>
		<input ng-model="record_add.warehouse_id" />
	</div>
	<div class="new-item">
		<span>sale_extra_fee</span>
		<input ng-model="record_add.sale_extra_fee" />
	</div>
</div>

        </div>
    </div>
</div>

<div class="data-overlay" ng-show="edit_open">
    <div class="overlay-container">
        <div class="overlay-header">summary_edit</div>
        <div ng-form name="form_edit" novalidate="novalidate">
            <div class="new-block" >
	<div class="new-item">
		<span>start_sale_time</span>
		<input ng-model="record_edit.start_sale_time" />
	</div>
	<div class="new-item">
		<span>vid</span>
		<input ng-model="record_edit.vid" />
	</div>
	<div class="new-item">
		<span>engine_no</span>
		<input ng-model="record_edit.engine_no" />
	</div>
	<div class="new-item">
		<span>compulsory_insurance_flag</span>
		<input ng-model="record_edit.compulsory_insurance_flag" />
	</div>
	<div class="new-item">
		<span>model</span>
		<input ng-model="record_edit.model" />
	</div>
	<div class="new-item">
		<span>purchase_unit</span>
		<input ng-model="record_edit.purchase_unit" />
	</div>
	<div class="new-item">
		<span>id</span>
		<input ng-model="record_edit.id" />
	</div>
	<div class="new-item">
		<span>prepare_sale_price</span>
		<input ng-model="record_edit.prepare_sale_price" />
	</div>
	<div class="new-item">
		<span>brand</span>
		<input ng-model="record_edit.brand" />
	</div>
	<div class="new-item">
		<span>sale_customer_source</span>
		<input ng-model="record_edit.sale_customer_source" />
	</div>
	<div class="new-item">
		<span>purchase_type</span>
		<input ng-model="record_edit.purchase_type" />
	</div>
	<div class="new-item">
		<span>validate_cost</span>
		<input ng-model="record_edit.validate_cost" />
	</div>
	<div class="new-item">
		<span>interior_color</span>
		<input ng-model="record_edit.interior_color" />
	</div>
	<div class="new-item">
		<span>referral_position</span>
		<input ng-model="record_edit.referral_position" />
	</div>
	<div class="new-item">
		<span>inventory_id</span>
		<input ng-model="record_edit.inventory_id" />
	</div>
	<div class="new-item">
		<span>shangyexian</span>
		<input ng-model="record_edit.shangyexian" />
	</div>
	<div class="new-item">
		<span>sale_transfer_fee</span>
		<input ng-model="record_edit.sale_transfer_fee" />
	</div>
	<div class="new-item">
		<span>stock_sn</span>
		<input ng-model="record_edit.stock_sn" />
	</div>
	<div class="new-item">
		<span>version</span>
		<input ng-model="record_edit.version" />
	</div>
	<div class="new-item">
		<span>phone</span>
		<input ng-model="record_edit.phone" />
	</div>
	<div class="new-item">
		<span>purchase_price</span>
		<input ng-model="record_edit.purchase_price" />
	</div>
	<div class="new-item">
		<span>salesman</span>
		<input ng-model="record_edit.salesman" />
	</div>
	<div class="new-item">
		<span>replacement_vehicle</span>
		<input ng-model="record_edit.replacement_vehicle" />
	</div>
	<div class="new-item">
		<span>purchase_date</span>
		<input ng-model="record_edit.purchase_date" />
	</div>
	<div class="new-item">
		<span>extra_fee</span>
		<input ng-model="record_edit.extra_fee" />
	</div>
	<div class="new-item">
		<span>warehouse_sn</span>
		<input ng-model="record_edit.warehouse_sn" />
	</div>
	<div class="new-item">
		<span>customer_type</span>
		<input ng-model="record_edit.customer_type" />
	</div>
	<div class="new-item">
		<span>sale_phone</span>
		<input ng-model="record_edit.sale_phone" />
	</div>
	<div class="new-item">
		<span>color</span>
		<input ng-model="record_edit.color" />
	</div>
	<div class="new-item">
		<span>sale_referral_position</span>
		<input ng-model="record_edit.sale_referral_position" />
	</div>
	<div class="new-item">
		<span>sale_type</span>
		<input ng-model="record_edit.sale_type" />
	</div>
	<div class="new-item">
		<span>remark</span>
		<input ng-model="record_edit.remark" />
	</div>
	<div class="new-item">
		<span>expect_store_risk</span>
		<input ng-model="record_edit.expect_store_risk" />
	</div>
	<div class="new-item">
		<span>miles</span>
		<input ng-model="record_edit.miles" />
	</div>
	<div class="new-item">
		<span>sale_customer_name</span>
		<input ng-model="record_edit.sale_customer_name" />
	</div>
	<div class="new-item">
		<span>reconditioning_cost</span>
		<input ng-model="record_edit.reconditioning_cost" />
	</div>
	<div class="new-item">
		<span>sale_date</span>
		<input ng-model="record_edit.sale_date" />
	</div>
	<div class="new-item">
		<span>vehicle_status</span>
		<input ng-model="record_edit.vehicle_status" />
	</div>
	<div class="new-item">
		<span>customer_source</span>
		<input ng-model="record_edit.customer_source" />
	</div>
	<div class="new-item">
		<span>pay_type</span>
		<input ng-model="record_edit.pay_type" />
	</div>
	<div class="new-item">
		<span>sn</span>
		<input ng-model="record_edit.sn" />
	</div>
	<div class="new-item">
		<span>appraiser</span>
		<input ng-model="record_edit.appraiser" />
	</div>
	<div class="new-item">
		<span>compulsory_insurance_expire_date</span>
		<input ng-model="record_edit.compulsory_insurance_expire_date" />
	</div>
	<div class="new-item">
		<span>vehicle_id</span>
		<input ng-model="record_edit.vehicle_id" />
	</div>
	<div class="new-item">
		<span>loan_id</span>
		<input ng-model="record_edit.loan_id" />
	</div>
	<div class="new-item">
		<span>insurance_id</span>
		<input ng-model="record_edit.insurance_id" />
	</div>
	<div class="new-item">
		<span>sale_referral</span>
		<input ng-model="record_edit.sale_referral" />
	</div>
	<div class="new-item">
		<span>quantity</span>
		<input ng-model="record_edit.quantity" />
	</div>
	<div class="new-item">
		<span>address</span>
		<input ng-model="record_edit.address" />
	</div>
	<div class="new-item">
		<span>stock_time</span>
		<input ng-model="record_edit.stock_time" />
	</div>
	<div class="new-item">
		<span>base_id</span>
		<input ng-model="record_edit.base_id" />
	</div>
	<div class="new-item">
		<span>register_date</span>
		<input ng-model="record_edit.register_date" />
	</div>
	<div class="new-item">
		<span>license_plate</span>
		<input ng-model="record_edit.license_plate" />
	</div>
	<div class="new-item">
		<span>referral</span>
		<input ng-model="record_edit.referral" />
	</div>
	<div class="new-item">
		<span>transfer_fee</span>
		<input ng-model="record_edit.transfer_fee" />
	</div>
	<div class="new-item">
		<span>upkeep_cost</span>
		<input ng-model="record_edit.upkeep_cost" />
	</div>
	<div class="new-item">
		<span>insurance_flag</span>
		<input ng-model="record_edit.insurance_flag" />
	</div>
	<div class="new-item">
		<span>customer_name</span>
		<input ng-model="record_edit.customer_name" />
	</div>
	<div class="new-item">
		<span>pre_sale_price</span>
		<input ng-model="record_edit.pre_sale_price" />
	</div>
	<div class="new-item">
		<span>warehouse_id</span>
		<input ng-model="record_edit.warehouse_id" />
	</div>
	<div class="new-item">
		<span>sale_extra_fee</span>
		<input ng-model="record_edit.sale_extra_fee" />
	</div>
</div>

        </div>
    </div>
</div>